package net.destroyer.game.tetris.core.shape;

import javax.media.j3d.TransformGroup;

import net.destroyer.game.tetris.core.shape.cube.ActiveGameCube;
import net.destroyer.game.tetris.core.util.RefferencePoint;
import net.destroyer.game.tetris.core.util.StartPoint;

public class TGameCube extends GameCubes {

	public TGameCube(StartPoint s) {
		this.cubes.add(new ActiveGameCube(new RefferencePoint(s.x,s.y,s.z)));
		this.cubes.add(new ActiveGameCube(new RefferencePoint(s.x+1,0,s.z)));
		this.cubes.add(new ActiveGameCube(new RefferencePoint(0,s.y+1,s.z)));
		this.cubes.add(new ActiveGameCube(new RefferencePoint(s.x-1,0,s.z)));
		for (TransformGroup gr : this.cubes) {
			this.addChild(gr);
		}
	}
}
